Skip to content

Allow packs to be created anywhere#130

Merged
ashleywillard merged 1 commit intorubyatscale:mainfrom
naveg:naveg/allowed-folders
Nov 28, 2023
Merged

Allow packs to be created anywhere#130
ashleywillard merged 1 commit intorubyatscale:mainfrom
naveg:naveg/allowed-folders

Conversation

@naveg
Copy link
Copy Markdown
Contributor

@naveg naveg commented Nov 17, 2023

packs is able to find packs anywhere, as long as those locations are
specified in packs.yml.

Comment thread lib/packs/private.rb
).returns(ParsePackwerk::Package)
end
def self.create_pack_if_not_exists!(pack_name:, enforce_privacy:, enforce_dependencies:, team: nil)
if PERMITTED_PACK_LOCATIONS.none? { |permitted_location| pack_name.start_with?(permitted_location) }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@naveg Could we change this to check the packs config and ensure that the desired pack path is permitted via the configuration?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense. I'll give it a go and update this PR

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@naveg naveg force-pushed the naveg/allowed-folders branch from 30af7ac to 96adbd9 Compare November 17, 2023 18:21
@naveg naveg requested a review from alexevanczuk November 17, 2023 18:21
Copy link
Copy Markdown
Contributor

@alexevanczuk alexevanczuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice looks great! @shageman could you help get this merged?

@professor
Copy link
Copy Markdown
Contributor

Thanks @naveg for the PR.

My team is dedicating two working sessions each week to review open PRs. We've been using a two-prong approach to tackle the newest open PRs and the oldest open PRs during each session.

@naveg
Copy link
Copy Markdown
Contributor Author

naveg commented Nov 28, 2023

@professor makes sense - thanks!

`packs` is able to find packs anywhere, as long as those locations are
specified in `packs.yml`.
@naveg naveg force-pushed the naveg/allowed-folders branch from 96adbd9 to d425374 Compare November 28, 2023 21:48
@ashleywillard ashleywillard enabled auto-merge (squash) November 28, 2023 21:53
@ashleywillard ashleywillard merged commit 2d2a43a into rubyatscale:main Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants